@echo off
set ENV_ROOT_DIR=%~dp0..
set PREBUILD_DIR=%ENV_ROOT_DIR%\prebuild
set LIBS_DIR=%ENV_ROOT_DIR%\libs


REM 删除prebuild文件夹下所有子文件夹和文件（保留prebuild文件夹）
echo "delete prebuild dir subfolders and files"
if exist "%PREBUILD_DIR%" (
    for /d %%d in ("%PREBUILD_DIR%\*") do rmdir "%%d" /s /q
    del /s /q /f "%PREBUILD_DIR%\*"
)

REM 删除libs文件夹下所有子文件夹和文件（保留libs文件夹）
echo "delete libs dir subfolders and files"
if exist "%LIBS_DIR%" (
    for /d %%d in ("%LIBS_DIR%\*") do rmdir "%%d" /s /q
    del /s /q /f "%LIBS_DIR%\*"
)
